<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Benchmark</title>
    <script type="text/javascript" src="benchmarker.js"></script>
    <script type="text/javascript">
/* <![CDATA[ */
new Benchmarker({},
{
  atInit: function() {
    this.camelFilters = function(str) {
      return str.indexOf('-') > -1 ? str.camelize() : str;
    };
  },

  // custom Benchmarker options
  summary: 'String.camelize()',
  setup: function() {
    $w('foo foo-bar foo-bar-baz').each(function(str) {
      eval('methods["' + str + '"] = function() { return "' + str + '".camelize() }');
      eval('methods["' + str + '(*)"] = function() { return this.camelFilters("' + str + '") }');
    });
  }
});
/* ]]> */
    </script>
  </head>
  <body>
  </body>
</html>
